package com.weixin.base.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.org.rapid_framework.page.Page;
import cn.org.rapid_framework.page.PageRequest;

import com.weixin.base.dao.AreaManagerDao;
import com.weixin.base.service.AreaManagerService;
import com.weixin.entity.TbArea;
import com.weixin.entity.TbCenterNorelArea;
import com.weixin.entity.TbMobileRelArea;

@Service("areaManagerService")
public class AreaManagerServiceImpl implements AreaManagerService {

	@Autowired
	private AreaManagerDao areaManagerDao;

	public Page searchAreaCenterByPageReq(PageRequest<Map> pageRequest) {
		return areaManagerDao.searchAreaCenterByPageReq(pageRequest);
	}
	
	@Override
	public boolean addAreaCenter(TbCenterNorelArea entity) {
		return areaManagerDao.addAreaCenter(entity);
	}

	@Override
	public boolean addAreaMoblie(TbMobileRelArea entity) {
		return areaManagerDao.addAreaMoblie(entity);
	}

	@Override
	public boolean deleteAreaCenter(int ncenterNoRelAreaId) {
		return areaManagerDao.deleteAreaCenter(ncenterNoRelAreaId);
	}

	@Override
	public boolean deleteAreaMoblie(int nmobileRelAreaId) {
		return areaManagerDao.deleteAreaMoblie(nmobileRelAreaId);
	}

	@Override
	public Page searchAreaMoblieByPageReq(PageRequest<Map> pageRequest) {
		return areaManagerDao.searchAreaMoblieByPageReq(pageRequest);
	}

	@Override
	public boolean updateAreaCenter(TbCenterNorelArea entity) {
		return areaManagerDao.updateAreaCenter(entity);
	}

	@Override
	public boolean updateAreaMoblie(TbMobileRelArea entity) {
		return areaManagerDao.updateAreaMoblie(entity);
	}
	
	@Override
	public Page searchareaManager(PageRequest<Map> pageRequest) {
		return areaManagerDao.searchareaManager(pageRequest);
	}
	
	@Override
	public boolean updateareaManager(TbArea tbArea) {
		return areaManagerDao.updateareaManager(tbArea);
	}
	@Override
	public boolean addareaManager(TbArea tbArea) {
		return areaManagerDao.addareaManager(tbArea);
	}

	@Override
	public List<Map<String, Object>> selectsCitybyProvince(int provinceId) {
		return areaManagerDao.selectsCitybyProvince(provinceId);
	}

	@Override
	public List<Map<String, Object>> selectsProvince() {
		return areaManagerDao.selectsProvince();
	}
}
